package com.meta.platform.sms.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by onefish on 2017/7/7 0007.
 */
@Component
public class AliSmsPushConfig {

    public static String smsServer;

    public static String endPoint;

    public static String product;

    public static String domain;

    public static String accessKey;

    public static String secret;

    @Value("${sms.aliyun.smsServer}")
    public void setSmsServer(String smsServer) {
        AliSmsPushConfig.smsServer = smsServer;
    }

    @Value("${sms.aliyun.endPoint}")
    public void setEndPoint(String endPoint) {
        AliSmsPushConfig.endPoint = endPoint;
    }

    @Value("${sms.aliyun.product}")
    public void setProduct(String product) {
        AliSmsPushConfig.product = product;
    }

    @Value("${sms.aliyun.domain}")
    public void setDomain(String domain) {
        AliSmsPushConfig.domain = domain;
    }

    @Value("${sms.aliyun.accessKey}")
    public void setAccessKey(String accessKey) {
        AliSmsPushConfig.accessKey = accessKey;
    }

    @Value("${sms.aliyun.secret}")
    public void setSecret(String secret) {
        AliSmsPushConfig.secret = secret;
    }
}
